package com.ylsk.check.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ylsk.common.core.domain.MybatisPlusBaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ylsk.common.annotation.Excel;

/**
 * 大队施工人员对象 ins_dept_cons_user
 *
 * @author yangsy
 * @date 2024-01-29
 */
@TableName("ins_dept_cons_user")
public class DeptConsUser extends MybatisPlusBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 大队施工人员 */
    @TableId
    private Long deptConsUserId;

    /** 大队id */
    @Excel(name = "大队id")
    private Long deptId;

    /** 人员id */
    @Excel(name = "人员id")
    private Long userId;


    public void setDeptConsUserId(Long deptConsUserId)
    {
        this.deptConsUserId = deptConsUserId;
    }

    public Long getDeptConsUserId()
    {
        return deptConsUserId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deptConsUserId", getDeptConsUserId())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public DeptConsUser() {

    }

    public DeptConsUser(Long deptConsUserId, Long deptId, Long userId) {
        this.deptConsUserId = deptConsUserId;
        this.deptId = deptId;
        this.userId = userId;
    }
}
